package edu.sctu.wulixia.month4and5.day20150505;

/**
 * Created by user05 on 2015/5/6.
 */
public class OutPut {
    public static void main(String[] args) {
        DogInfoOne doginfoone = new DogInfoOne();
        doginfoone.getColor();
        doginfoone.getSize();
        doginfoone.getAction();
        doginfoone.getIofo(new TestInterFace() {
            @Override
            public void getInfo(String color, int size, String action) {
                System.out.println("狗的颜色为" + color + "\t" + "狗的大小为" +
                        size + "\t" + "狗的动作为" + action);
            }
        });

        DogInfoTwo doginfotwo = new DogInfoTwo();
        doginfotwo.color = "黑色";
        doginfotwo.size = 20;
        doginfotwo.action = "Jumping";
        doginfotwo.getIofo(new TestInterFace() {
            @Override
            public void getInfo(String color, int size, String action) {

            }
        });

        }

    }